

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加菜单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css" media="all">

</head>
<body>
<div class="layui-form layuiadmin-card-header-auto">
    <div class="layui-form-item">
        <button class="layui-btn layui-btn-primary layuiadmin-btn-admin"  data-type="reset"><i class="layui-icon layui-icon-refresh"></i>撤销</button>
        <button class="layui-btn layui-btn-warm layuiadmin-btn-admin"  data-type="save"><i class="layui-icon layui-icon-ok"></i>保存</button>
        <button class="layui-btn layui-btn-danger layuiadmin-btn-admin"  data-type="back"><i class="layui-icon layui-icon-return"></i>返回</button>

    </div>
  <form class="layui-form" action="" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">上级菜单</label>-->
<!--      <div class="layui-input-inline" id="menuSelect">-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">资源类别</label>-->
<!--      <div class="layui-input-inline" >-->
<!--        <select name="type" lay-filter="typeSelect">-->
<!--          <option value="catalog">目录</option>-->
<!--          <option value="menu">菜单</option>-->
<!--          <option value="button">按钮</option>-->
<!--          <option value="window">弹窗</option>-->
<!--          <option value="newWindow">新窗</option>-->
<!--          <option value="link">链接</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">导入方式</label>-->
<!--      <div class="layui-input-inline" >-->
<!--        <select name="source" lay-filter="sourceSelect" >-->
<!--          <option value="self">自定义</option>-->
<!--          <option value="platform">平台</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->
<!--    <input type="text" name="pId" style="display:none">-->
<!--    <div class="layui-form-item" style="display:none" id="selectSource">-->
<!--      <label class="layui-form-label">选择</label>-->
<!--       <div class="layui-input-inline">-->
<!--		  <input type="text" name="modelKey" id="modelSelect"   placeholder="请选择平台模块" autocomplete="off" class="layui-input">-->
<!--		  <input type="text" name="modelValue" style="display:none" autocomplete="off" class="layui-input">-->
<!--	  </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">选择图标</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="icon" id="icon" placeholder="请输入图标" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">菜单名称</label>-->
<!--      <div class="layui-input-inline" id="menuName1">-->
<!--        <input type="text" name="name" lay-verify="required"  placeholder="请输入菜单名称" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--      <div class="layui-input-inline" style="display:none" id="menuName2">-->
<!--      	<input type="text" name="btnName"  class="layui-input" style="position:absolute;z-index:2;width:90%;"  autocomplete="off">-->
<!--        <select name="btnName" id="btnName" lay-filter="buttonSelect">-->
<!--          <option value="add">新增</option>-->
<!--          <option value="edit">编辑</option>-->
<!--          <option value="batchdel">删除</option>-->
<!--          <option value="export">导出</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">资源地址</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="url" id="url" placeholder="请输入资源地址" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->
<!--     <div class="layui-form-item">-->
<!--      <label class="layui-form-label">替换参数</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="canshu" id="canshu" placeholder="请输入地址参数值" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">显示顺序</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="place" lay-verify="required" placeholder="请输入显示顺序" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->
<!--       <div class="layui-form-item">-->
<!--              <label class="layui-form-label">可读字段</label>-->
<!--              <div class="layui-input-inline">-->
<!--	              <input type="text" name="field"  placeholder="请输入可读字段" autocomplete="off" class="layui-input">-->
<!--              </div>-->
<!--	              <i id="about1" class="layui-icon" style="margin-top:12px;float:left;display:inline-block" >&#xe60b;</i>-->
<!--       </div>-->
<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">状态</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="checkbox" lay-filter="switch" checked="true" name="status" lay-skin="switch" lay-text="启用|禁用">-->
<!--      </div>-->
<!--    </div>-->


      <fieldset class = "layui-elem-field layui-field-title" style="margin-top: 20px">
          <legend >基本信息</legend>
      </fieldset>


    <div class="layui-form-item">
      <label class="layui-form-label" >姓名</label>
      <div class="layui-input-inline" >
        <input type="text" name="name" id="name" autocomplete="off" placeholder="填写姓名" class="layui-input" lay-verify="required">
      </div>
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline" >
            <select name="sex" >
                <option value="男">男</option>
                <option value="女">女</option>
            </select>
        </div>
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input type="phone" name="phone" id="phone" lay-verify="required|phone" placeholder="输入手机号" autocomplete="off" class="layui-input">
        </div>
        <label class="layui-form-label">入职时间</label>
        <div class="layui-input-inline">
            <input type="text" name="entry_time" id="entry_time" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">

        </div>
    </div>


<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">性别</label>-->
<!--      <div class="layui-input-inline" >-->
<!--        <select name="sex">-->
<!--          <option value="男">男</option>-->
<!--          <option value="女">女</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->



    <div class="layui-form-item">
      <label class="layui-form-label">工龄</label>
      <div class="layui-input-inline" >
        <input type="text" name="work_age" id="work_age"  placeholder="例如1年" lay-verify="required" autocomplete="off" class="layui-input">
      </div>
        <label class="layui-form-label">部门</label>
        <div class="layui-input-inline">
            <input type="text" name="department" id="department" lay-verify="required" placeholder="选择部门" autocomplete="off" class="layui-input">
        </div>
        <label class="layui-form-label">岗位</label>
        <div class="layui-input-inline">
            <select name="post"  >
                <option value="信息部">信息部</option>
            </select>
        </div>
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <select name="state" >
                <option value="启用">启用</option>
                <option value="禁用">禁用</option>
            </select>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">部门</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="department" id="department" placeholder="选择部门" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">岗位</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <select name="post"  >-->
<!--          <option value="信息部">信息部</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">状态</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <select name="state" >-->
<!--          <option value="启用">启用</option>-->
<!--          <option value="禁用">禁用</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

    <div class="layui-form-item">
      <label class="layui-form-label">国籍</label>
      <div class="layui-input-inline">
        <input type="text" name="nationality" lay-verify="required" id="nationality" placeholder="选择国籍" autocomplete="off" class="layui-input">
      </div>
        <label class="layui-form-label">民族</label>
        <div class="layui-input-inline">
            <select name="nation" >
                <option value="汉族">汉族</option>
                <option value="少数名族">少数名族</option>
            </select>
        </div>
        <label class="layui-form-label">政治面貌</label>
        <div class="layui-input-inline">
            <select name="politics" >
                <option value="党员">党员</option>
                <option value="群众">群众</option>
                <option value="预备党员">预备党员</option>
                <option value="团员">团员</option>
            </select>
        </div>
        <label class="layui-form-label">最高学历</label>
        <div class="layui-input-inline">
            <select name="education" >
                <option value="高中及以下学历">高中及以下学历</option>
                <option value="专科">专科</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
                <option value="博士及以上学历">博士及以上学历</option>
            </select>
        </div>

    </div>

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">民族</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <select name="nation" >-->
<!--          <option value="汉族">汉族</option>-->
<!--          <option value="少数名族">少数名族</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">政治面貌</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <select name="politics" >-->
<!--          <option value="党员">党员</option>-->
<!--          <option value="群众">群众</option>-->
<!--          <option value="预备党员">预备党员</option>-->
<!--          <option value="团员">团员</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">最高学历</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <select name="education" >-->
<!--          <option value="高中及以下学历">高中及以下学历</option>-->
<!--          <option value="专科">专科</option>-->
<!--          <option value="本科">本科</option>-->
<!--          <option value="研究生">研究生</option>-->
<!--          <option value="博士及以上学历">博士及以上学历</option>-->
<!--        </select>-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">毕业院校</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="school" id="school" placeholder="填写毕业院校" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">毕业院校</label>
        <div class="layui-input-inline">
            <input type="text" name="school" lay-verify="required" id="school" placeholder="填写毕业院校" autocomplete="off" class="layui-input">
        </div>
      <label class="layui-form-label">身份证号</label>
      <div class="layui-input-inline">
        <input type="text" name="code" lay-verify="required" id="code" placeholder="填写身份证号" autocomplete="off" class="layui-input">
      </div>
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">

            <input type="text" name="birth" lay-verify="required" id="birth" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">
        </div>
        <label class="layui-form-label">户口所在地</label>
        <div class="layui-input-inline">
            <input type="text" lay-verify="required" name="registered" id="registered" placeholder="填写户口所在地" autocomplete="off" class="layui-input">
        </div>


    </div>



<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">生日</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="date" name="birth" id="birth" placeholder="选择生日" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">户口所在地</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="registered" id="registered" placeholder="填写户口所在地" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">住址</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="address" id="address" placeholder="填写住址" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">编号</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="number" id="number" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">住址</label>
        <div class="layui-input-inline">
            <input type="text" name="address" lay-verify="required" id="address" placeholder="填写住址" autocomplete="off" class="layui-input">
        </div>
        <label class="layui-form-label">编号</label>
        <div class="layui-input-inline">
            <input type="text" name="number" lay-verify="required" placeholder="填写编号" id="number" autocomplete="off" class="layui-input">
        </div>
      <label class="layui-form-label">合同截止日期</label>
      <div class="layui-input-inline">

          <input type="text" name="expire" lay-verify="required" id="expire" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">
      </div>
        <label class="layui-form-label">签约合同</label>
        <div class="layui-input-inline">
            <input type="text" name="qianyue" lay-verify="required" id="qianyue" placeholder="签约合同" autocomplete="off" class="layui-input">
        </div>

    </div>

<!--    <div class="layui-form-item">-->
<!--      <label class="layui-form-label">备注</label>-->
<!--      <div class="layui-input-inline">-->
<!--        <input type="text" name="remarks" id="remarks" placeholder="备注" autocomplete="off" class="layui-input">-->
<!--      </div>-->
<!--    </div>-->
          <div class="layui-form-item">
              <label class="layui-form-label">到期提醒</label>
              <div class="layui-input-inline">
                  <input type="text" name="daoqi"  id="daoqi" placeholder="到期提醒" autocomplete="off" class="layui-input">
              </div>
              <label class="layui-form-label">提醒天数</label>
              <div class="layui-input-inline">
                  <input type="text" name="tianshu" id="tianshu" placeholder="提醒天数" autocomplete="off" class="layui-input">
              </div>
              <label class="layui-form-label">备注</label>
              <div class="layui-input-inline">
                  <input type="text" name="remarks" id="remarks" placeholder="如有备注请在此填写" autocomplete="off" class="layui-input">
              </div>
<!--              <label class="layui-form-label">当前状态</label>-->
<!--              <div class="layui-input-inline">-->
<!--                  <input type="text" name="curr_stat" id="curr_stat" placeholder="如有备注请在此填写" autocomplete="off" class="layui-input">-->
<!--              </div>-->
          </div>
      <div class="layui-form-item">
          <div class="layui-input-inline">
              <label class="layui-form-label">上传一寸照</label>
<!--              <input type="file" name="yicunzhao" id="yicunzhao"  autocomplete="off" class="layui-input">-->
              <button type="button" class="layui-btn"  id="yicunzhao" lay-verify="isupload"><i class="layui-icon">&#xe67c;</i>上传图片</button>

              <div class="layui-upload-list">
                <img style="display: none" src="" id = "yicunzhaodemo" width="100" height="100">
                  <span id="yicunzhaoname" ></span>
              </div>

              <input type="hidden" name = "yicunzhao"  lay-verify="required" id = "yicunzhaopic">
              <div id="yicunzhaoText"></div>
          </div>
      </div>
      <div class="layui-form-item">
          <div class="layui-input-inline">
              <label class="layui-form-label">上传个人简历</label>

              <button type="button" class="layui-btn"  id="gerenjianli" lay-verify="isupload"><i class="layui-icon">&#xe67c;</i>上传图片</button>

              <div class="layui-upload-list">
                <img style="display: none" src="" id = "gerenjianlidemo" width="100" height="100">
                  <span id="gerenjianliname" ></span>
              </div>

              <input type="hidden" name = "gerenjianli" lay-verify="required"  id = "gerenjianlipic" >
              <div id="gerenjianliText"></div>
          </div>


      </div>


      <fieldset class = "layui-elem-field layui-field-title" style="margin-top: 20px">
          <legend >工作经历</legend>
      </fieldset>
      <div id="gzjl">

      <div class="layui-form-item">

          <label class="layui-form-label">开始日期</label>
          <div class="layui-input-inline">

              <input type="text" name="gz_start[]" id="gz_start" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">
          </div>
          <label class="layui-form-label">结束日期</label>
          <div class="layui-input-inline">
              <input type="text" name="gz_over[]" id="gz_over" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">
          </div>
          <label class="layui-form-label">部门</label>
          <div class="layui-input-inline">
              <input type="text" name="gz_bumen[]" id="gz_bumen" placeholder="所在部门" autocomplete="off" class="layui-input">
          </div>
          <label class="layui-form-label">岗位</label>
          <div class="layui-input-inline">
              <input type="text" name="gz_gangwei[]" id="gz_gangwei" placeholder="所在岗位" autocomplete="off" class="layui-input">
          </div>


      </div>
      </div>
<!--      <div class="layui-form-item">-->
<!--          <div class="layui-input-inline">-->

              <button class="layui-btn-primary layui-btn  layui-btn-fluid "  id="addfield" >增加</button>
<!--          </div>-->
<!--      </div>-->

      <fieldset class = "layui-elem-field layui-field-title" style="margin-top: 20px">
          <legend >工作成就</legend>
      </fieldset>

      <div class="layui-form-item">
          <label class="layui-form-label">日期</label>
          <div class="layui-input-inline">
              <input type="text" name="cj_riqi" id="cj_riqi" lay-verify="date" placeholder="例如2009-01-01" autocomplete="off" class="layui-input riqi">
          </div>
          <label class="layui-form-label">奖项类型</label>
          <div class="layui-input-inline">
              <input type="text" name="cj_jiangxiangleixing" id="cj_jiangxiangleixing" placeholder="奖项类型" autocomplete="off" class="layui-input">
          </div>
          <label class="layui-form-label">成就说明</label>
          <div class="layui-input-inline">
              <input type="text" name="cj_shuoming" id="cj_shuoming" placeholder="成就说明" autocomplete="off" class="layui-input">
          </div>

          <div class="layui-input-inline">
              <label class="layui-form-label">上传工作照片</label>

<!--              <input type="file" name="cj_pic" id="cj_pic"  autocomplete="off" class="layui-input">-->
              <button type="button" class="layui-btn"  id="gongzuozhaopian" lay-verify="isupload"><i class="layui-icon">&#xe67c;</i>上传图片</button>

              <div class="layui-upload-list">

                  <img style="display: none" src="" id = "gongzuozhaopiandemo" width="100" height="100" >
                  <span id="gongzuozhaopianname" ></span>
              </div>

              <input type="hidden" name = "gongzuozhaopian" lay-verify="required"  id = "gongzuozhaopianpic">
              <div id="gongzuozhaopiannameText"></div>

          </div>

      </div>


              <input type="button" class="layui-btn layui-hide layui-btn-fluid" lay-submit lay-filter="LAY-menu-add-submit" id="LAY-menu-add-submit" value="确认">


<!--          <input type="button" class="layui-btn layui-btn-danger layui-btn-fluid" lay-submit lay-filter="LAY-menu-add-cancel" id="LAY-menu-add-cancel" value="取消">-->


<!--      <div class="layui-form-item layui-hide">-->
    </div>
  </form>

  <script src="${basePath!}/genius/layui/layui.js"></script>

  <script>
  layui.config({
    base: '${basePath!}/genius/' //静态资源所在路径
    ,host:'${basePath!}'//项目访问路径
  }).extend({
    index: 'lib/index' //主入口模块
    ,insert: 'human/menu/insert'
  }).use(['index', 'insert'],function (){
      var $ = layui.$
          ,insert = layui.insert;

      var parentJson = {};
      var parameter = {};

      parameter.id = "${RequestParameters["id"]}";
      parentJson.bakUrl = "${RequestParameters["bakUrl"]}";
      parentJson.jsType = "${RequestParameters["jsType"]}";
      parentJson.parameter = parameter;
      console.log(parentJson)
      insert.setParentJson(parentJson);
  })
  </script>
</body>
</html>